<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>menu</title>
</head>

<body>
${list}
	<center>
		<table border="1" width="80%">
			<tr align="center">
				<td>id</td>
				<td>name</td>
				<td>price</td>
				<td>stock</td>
			</tr>
			<c:forEach items="${list }" var="st">
				<tr align="center">
					<td>${st.id}</td>
					<td>${st.name }</td>
					<td>${st.price }</td>
					<td>${st.stock }</td>
				</tr>
			</c:forEach>
		</table>
	</center>
	<br>
</body>
</html>
